<h1>Listing heros</h1>

<table>
  <tr>
    <th>User</th>
    <th>Name</th>
    <th>History</th>
    <th>Strength</th>
    <th>Intelligence</th>
    <th>Constitution</th>
    <th>Life</th>
    <th>Sex</th>
    <th>Map</th>
    <th></th>
    <th></th>
    <th></th>
  </tr>

<% @heros.each do |hero| %>
  <tr>
    <td><%= hero.user_id %></td>
    <td><%= hero.name %></td>
    <td><%= hero.history %></td>
    <td><%= hero.strength %></td>
    <td><%= hero.intelligence %></td>
    <td><%= hero.constitution %></td>
    <td><%= hero.life %></td>
    <td><%= hero.sex %></td>
    <td><%= hero.map_id %></td>
    <td><%= link_to 'Show', hero %></td>
    <td><%= link_to 'Edit', edit_hero_path(hero) %></td>
    <td><%= link_to 'Destroy', hero, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New Hero', new_hero_path %>
